/*
 * Powered By 
 * Since 2010 - 2016
 */

package com.rf.sys.service;

import java.util.List;
import java.util.Map;

import com.rf.sys.utils.PageUtils;
import com.rf.sys.model.Department;

public interface DepartmentService{
	
	/**
	 * 根据id获取数据
	 * @param departmentId
	 * @return Department
	 */
	public Department getDepartmentByID(String id
) throws Exception;
	
	/**
	 * 根据Department获取数据
	 * @param Department
	 * @return List<Department>
	 */
	public List<Department> getDepartment(Department department) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<Department>
	 */
	public List<Department> getDepartment() throws Exception;
	
	/**
	 * 保存信息
	 * @param Department
	 * @return
	 */
	public void addDepartment(Department department) throws Exception;
	
	/**
	 * 修改数据
	 * @param Department
	 * @return
	 */
	public void updateDepartment(Department department) throws Exception;
	
	/**
	 * 删除数据
	 * @param departmentId
	 * @return
	 */
	public void deleteDepartment(String id
) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param Department
	 * @param pageUtils
	 * @return Map
	 */
	public Map getDepartmentPage(Department department,PageUtils pageUtils) throws Exception;
}
